package br.com.sistema.smallAgro.cliente;

import org.apache.wicket.spring.injection.annot.SpringBean;

import br.com.sistema.smallAgro.Principal;
import br.com.sistema.smallAgro.AS.ClienteAS;
import br.com.sistema.smallAgro.modelo.Cliente;

public class ConsultarClientePage extends Principal {
	private static final long serialVersionUID = 4592101040400348029L;
	
	@SpringBean
	ClienteAS clienteAS;
	
	public ConsultarClientePage() {
		add(new ConsultaClienteForm("formulario") {
			private static final long serialVersionUID = -8878918548126558598L;

			@Override
			public void excluirCliente(Cliente cliente) {
				clienteAS.excluir(cliente);
			}

		});
	}
}
